/**
 * 
 */
package edu.buu.refectory.service;

import edu.buu.refectory.dao.BaseDao;

/**
 * @author Bruce<br>
 * @version 1.0<br>
 * @CreateDate 1 May 2016 <br>
 */
public class BaseService<T> {
	
	protected BaseDao dao;
	
	public void setDao(BaseDao dao){
		this.dao = dao;
	}
	
	public T create(T t){
		dao.insert(t);
		return t;
	}
}
